/*******************************************************************
*
*    DESCRIPTION:xmlutil.h:implement some utility about xml
*
*    AUTHOR:liuhui
*
*    HISTORY:
*
*    DATE:8/21/2006
*
*******************************************************************/
#ifndef XMLUTIL_H
#define XMLUTIL_H
#include "head.h"

extern xmlDocPtr XmlInit(const char *confpath);
extern int IsFirstStart(xmlDocPtr pdoc);
extern int SetHaveStarted(xmlDocPtr pdoc);
extern int IsStartwWithBoot(xmlDocPtr pdoc);
extern int SetStartWithBoot(xmlDocPtr pdoc);
extern int CancelStartWithBoot(xmlDocPtr pdoc);
extern void InitAppConfArray(xmlDocPtr pdoc);
extern int GetAppCounter(xmlDocPtr pdoc);
extern int AddAppName(xmlDocPtr pdoc, int allow, char *appname, int seqnum);
extern void XmlInitAppListStore(GtkListStore *app_list_store);
extern void XmlInitServiceListStore(GtkListStore *service_list_store);
void XmlAllowApp(char *app_name);
void XmlDenyApp(char *app_name);
int SetWetherAllowBePinged(xmlDocPtr pdoc, int allow);
#endif

